package com.boyunv.memento.example01;
/*
 *@description
 *
 *@author boyunv
 *@create 2023/9/4 7:51
 *@version 1.0
 */

public class Client {
    
    public static void main(String[] args) {
        
        //创建人发起对象
        Originator originator = new Originator();
        originator.setId("1");
        originator
                .setName("ww");
        originator.setPhone("1233333");
        System.out.println("============"+originator);
        
        Creataker creataker = new Creataker();
        creataker.setMemento(originator.createMemento());
        originator.setName("eeee");
        System.out.println("============"+originator);
    }
}
